package ar.com.vates.herenciaejercicio1;

public class Ejercicio2 {

		public static void main(String[] args) {
			CuentaCorriente cc1=new CuentaCorriente(new Titular("Pedro", "Casas",31), "100",100000);
			CuentaCorriente cc2=new CuentaCorriente(new Titular("Elsa", "Re",32), "200",11000);
			CuentaCorriente cc3=new CuentaCorriente(new Titular("Mili", "Kil",44), "100",12000);
			CuentaCorriente cc4=new CuentaCorriente(new Titular("Tito", "Loto",56), "200",13000);
			CuentaAhorro ca1=new CuentaAhorro(new Titular("Pato", "Manco", 74), "3500");
			CuentaAhorro ca2=new CuentaAhorro(new Titular("Lucas", "Hellos", 56), "180");
			CuentaAhorro ca3=new CuentaAhorro(new Titular("Leon", "Quito", 65), "6500");
			CuentaAhorro ca4=new CuentaAhorro(new Titular("Fer", "Lopez", 39), "480");
			
			
			System.out.println("deposito: "+cc1.depositar(8000));
			System.out.println("deposito: "+cc2.depositar(9000));
			System.out.println("deposito: "+cc3.depositar(7000));
			System.out.println("deposito: "+cc4.depositar(6000));
			System.out.println("extraccion: "+cc1.extraer(1000));
			System.out.println("extraccion: "+cc2.extraer(1000));
			System.out.println("extraccion: "+cc3.extraer(1000));
			System.out.println("extraccion: "+cc4.extraer(1000));
									
			ca1.calcularInteres();
			ca2.calcularInteres();
			ca3.calcularInteres();
			ca4.calcularInteres();
			
			
			ca1.imprimir();
			ca2.imprimir();
			ca3.imprimir();
			ca4.imprimir();
	}
		

	

}
